home *** CD-ROM | disk | FTP | other *** search
- /*
-
- POLYTOPE OBJECT INCLUDE FILE v1.0b - example file for arrayget
- Copyright (C) 1997 Thomas Willhalm
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-
- */
- #include "colors.inc"
-
- camera {
- location <0, 2, 2>
- look_at <0, 1, 0>
- }
-
- global_settings{ assumed_gamma 1.0 }
-
- light_source { <10, 20, 7> color White}
-
- plane { y 0 pigment {checker Green, White}}
-
- #declare array = "<1,.1,0>,<.9,.35,0>,<.8,.5,0>,<.7,.63,0>,<.6,.7,0>,<.5,.77,0>,<.4,.8,0>,<.3,.83,0>,<.2,.85,0>,<.1,.873,0>,<0,.875,0>"
-
- #declare max_pos=11
- #declare array_pos=1
- #while (array_pos<=max_pos)
- #include "arrayget.inc"
- sphere { float_vector, 0.05
- pigment{color 1-(max_pos-array_pos)/max_pos*<0,1,1>}}
- sphere { float_vector*<-1,1,1>, 0.05
- pigment{color 1-(max_pos-array_pos)/max_pos*<1,1,0>}}
- #declare array_pos = array_pos +1
- #end
-